<?php if (!$this->bPDF) : ?>
<form action="<?php echo $this->baseUrl('corporativo/relatorio/atividades-diarias'); ?>" method="post">
Usuário: <?php echo $this->formSelect('id_usuario', $this->id_usuario, null, $this->aUsuarios); ?>
Data: <input type="text" name="sData" value="<?php echo $this->sData; ?>" class="date">
<input type="submit" value="Gerar" /> <input type="submit"
    value="Gerar PDF" name="gerar-pdf" /></form>
<?php endif; ?>
<div class="lista-tarefas">
<h3>Acompanhamento de Atividades em <?php echo $this->sData; ?></h3>
Funcionário: <b><?php echo $this->aUsuarios[$this->id_usuario]; ?></b>
<div>

<h3>Atividades</h3>
<div>
<table border="1">
    <thead>
        <tr>
            <th scope="col" width="90px">Projeto</th>
            <th scope="col" width="60px">T.</th>
            <?php /*
            <th scope="col" width="60px">Horas</th> */ ?>
            <th scope="col" width="800px">Atividades</th>
        </tr>
    </thead>
    <tbody>
                    <?php
                    $i = 0;
                    foreach ($this->aAtividades as $aHoras) {
                        $class = ($i++ % 2 == 0) ? '' : ' class="cor"';
                    ?>
                        <tr <?php echo $class; ?>>
            <td width="90px"><?php echo $aHoras->projeto_st_nome; ?></td>
            <td width="60px" align="center"><?php echo $aHoras->fk_tarefa; ?></td>
            <?php /*
            <td width="60px" align="center"><?php echo $aHoras->qt_horas; ?></td>
            */ ?>
            <td width="800px"><?php echo nl2br($aHoras->st_atividade); ?></td>
        </tr>
                    <?php } ?>
                </tbody>
</table>
</div>

</div>